

class Handler(object):
    def __get__(self, owner, type=None):
        print 222, owner, type, self
        self.model = owner.model
        self._owner = owner
        self.admin_site = owner.admin_site
        return self

class Strategy(object):
    def init_strategy(self):
        pass
    
    def __get__(self, owner, type=None):
        print 333, owner, type, self
        self.model = owner.model
        self._owner = owner
        self.admin_site = owner.admin_site
        return self
    
    def __set__(self, owner, value):
        print 111, "SETTING", self.__class__.__name__, owner, value        
        self._owner = owner
        self.model = owner.model        
        
        self.opts = owner.opts
        self.model = owner.model
        self.admin_site = owner.admin_site        

#from xadmin.options.strategies.changelist import ListAdmin
from xadmin.options.strategies.change import ChangeStrategy
from xadmin.options.strategies.add import AddStrategy
from xadmin.options.strategies.history import HistoryStrategy
from xadmin.options.strategies.delete import DeleteStrategy
from xadmin.options.strategies.read import ReadStrategy
from xadmin.options.strategies.services import ServicesStrategy
from xadmin.options.strategies.actions import ActionsStrategy
from xadmin.options.strategies.permission import PermissionStrategy
from xadmin.options.strategies.logger import LoggerStrategy

